Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Microsoft.​Extensions.​Options.​OptionsManager<​TOptions>

Assembly: Microsoft.Extensions.Options

Inheritance: object → OptionsManager

Implemented Interfaces

Implements <see cref="T:Microsoft.Extensions.Options.IOptions`1" /> and <see cref="T:Microsoft.Extensions.Options.IOptionsSnapshot`1" /> .

Properties

public TOptions
Value
Gets the default configured <typeparamref name="TOptions" /> instance (equivalent to <c>Get(Options.DefaultName)</c> ).

Methods

public TOptions
Get​(string name)
Returns a configured <typeparamref name="TOptions" /> instance with the given <paramref name="name" /> .
Returns The <typeparamref name="TOptions" /> instance that matches the given <paramref name="name" /> .
name The name of the <typeparamref name="TOptions" /> instance. If <see langword="null" /> , <see cref="F:Microsoft.Extensions.Options.Options.DefaultName" /> , which is the empty string, is used.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object